package com.gzj.environment.module.collectData.service.impl;

import com.gzj.environment.model.collectData.dto.AirCollectData;
import com.gzj.environment.module.collectData.handler.InsertDataHandler;
import com.gzj.environment.module.collectData.repository.AirCollectDataRepository;
import com.gzj.environment.module.collectData.service.AirCollectDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.*;

@Service
@Slf4j
public class AirCollectDataServiceImpl implements AirCollectDataService {

    @Autowired
    private AirCollectDataRepository airCollectDataRepository;

    /**
     * 获取所有的数据
     *
     * @return
     */
    @Override
    public List<AirCollectData> findAll() {
        return airCollectDataRepository.findAll();
    }
}
